package com.sinosoft.hydra.um.domain.permission;

import java.io.Serializable;
import java.sql.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;

/**
 *
 *
 * Created:14-7-24 下午3:32
 *
 * @author <a href="mailto:caolei@sinosoft.co"> caolei </a>
 * @version 1.0
 */
@Entity
@DynamicInsert
@Table(name = "UM_SYS_SCHEDULER_LOG")
public class SysSchedulerLog extends IdEntity implements Serializable
{
	private static final long serialVersionUID = 1L;
	private String content; //日志内容
    private Integer status;    //状态1-信息，2-错误，3-测试
    private String stackTrace;  //堆栈信息
    private Date recordTime;    //记录时间

    /**
     * 日志内容
     * @return String
     */
    @Basic
    @Column(name = "CONTENT")
    public String getContent()
    {
        return content;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    /**
     * 状态
     * @return Integer
     */
    @Basic
    @Column(name = "STATUS")
    public Integer getStatus()
    {
        return status;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    /**
     * 堆栈信息
     * @return String
     */
    @Basic
    @Column(name = "STACK_TRACE")
    public String getStackTrace()
    {
        return stackTrace;
    }

    public void setStackTrace(String stackTrace)
    {
        this.stackTrace = stackTrace;
    }

    /**
     * 记录时间
     * @return Date
     */
    @Basic
    @Column(name = "RECORD_TIME", columnDefinition = "DATETIME DEFAULT CURRENT_TIMESTAMP")
    public Date getRecordTime()
    {
        return recordTime;
    }

    public void setRecordTime(Date recordTime)
    {
        this.recordTime = recordTime;
    }

}
